﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PKURG.CostSplit.Business.QueryBase;

namespace PKURG.CostSplit.Business
{
    public class UnitCost
    {
        public static List<dynamic> GetUnitCostList(string projectStageId)
        {
            var data= ExecuteQuery.GetList(
                new QueryBase.QueryInfo()
                {
                    ProcName = "usp_n_GetUnitCostList",
                    Params = { projectStageId }
                });
            return data;
        }

        public static List<dynamic> GetUnitCostListByAccount(string projectStageId, string accountName)
        {
            var data= ExecuteQuery.GetList(
                new QueryBase.QueryInfo()
                {
                    ProcName = "usp_n_GetAccountUnitCostList",
                    Params = { projectStageId, accountName }
                });
            return data;
        }
    }
}
